﻿using System;
using FluentTests.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace FluentTests.MSTest
{
    public class MSTestAssertionProvider : IAssertionProvider 
    {
        public void Fail()
        {
            Assert.Fail();
        }

        public void Fail(string message)
        {
            Assert.Fail(message);
        }

        public void IsNotNull(object obj)
        {
            Assert.IsNotNull(obj);
        }

        public void IsNull(object obj)
        {
            Assert.IsNull(obj);
        }

        public void Fail(string message, params object[] param)
        {
            Assert.Fail(message,param);
        }

        public void IsNotInstanceOfType(object actualValue, Type expectedType)
        {
            Assert.IsNotInstanceOfType(actualValue,expectedType);
        }

        public void IsInstanceOfType(object actualValue, Type expectedType)
        {
            Assert.IsInstanceOfType(actualValue, expectedType);
        }
    }
}
